public class Discount extends CutStrategy{
    private double _rate;


    public Discount(Sale sale, double rate) {
        super(sale);
        _rate =rate;
    }
    @Override
    public double totalCost(){
        return super.totalCost() * _rate;
    }
}
